package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Operation implements Serializable {
    private String opId;

    private String roleId;

    private String flowId;

    private String departId;

    private String opTitile;

    private String opDesc;

    private String opPic;

    private String opVideo;

    private Byte opVisible;

    private Integer opOrder;

    private static final long serialVersionUID = 1L;

    public String getOpId() {
        return opId;
    }

    public void setOpId(String opId) {
        this.opId = opId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getOpTitile() {
        return opTitile;
    }

    public void setOpTitile(String opTitile) {
        this.opTitile = opTitile;
    }

    public String getOpDesc() {
        return opDesc;
    }

    public void setOpDesc(String opDesc) {
        this.opDesc = opDesc;
    }

    public String getOpPic() {
        return opPic;
    }

    public void setOpPic(String opPic) {
        this.opPic = opPic;
    }

    public String getOpVideo() {
        return opVideo;
    }

    public void setOpVideo(String opVideo) {
        this.opVideo = opVideo;
    }

    public Byte getOpVisible() {
        return opVisible;
    }

    public void setOpVisible(Byte opVisible) {
        this.opVisible = opVisible;
    }

    public Integer getOpOrder() {
        return opOrder;
    }

    public void setOpOrder(Integer opOrder) {
        this.opOrder = opOrder;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", opId=").append(opId);
        sb.append(", roleId=").append(roleId);
        sb.append(", flowId=").append(flowId);
        sb.append(", departId=").append(departId);
        sb.append(", opTitile=").append(opTitile);
        sb.append(", opDesc=").append(opDesc);
        sb.append(", opPic=").append(opPic);
        sb.append(", opVideo=").append(opVideo);
        sb.append(", opVisible=").append(opVisible);
        sb.append(", opOrder=").append(opOrder);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Operation other = (Operation) that;
        return (this.getOpId() == null ? other.getOpId() == null : this.getOpId().equals(other.getOpId()))
            && (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId()))
            && (this.getFlowId() == null ? other.getFlowId() == null : this.getFlowId().equals(other.getFlowId()))
            && (this.getDepartId() == null ? other.getDepartId() == null : this.getDepartId().equals(other.getDepartId()))
            && (this.getOpTitile() == null ? other.getOpTitile() == null : this.getOpTitile().equals(other.getOpTitile()))
            && (this.getOpDesc() == null ? other.getOpDesc() == null : this.getOpDesc().equals(other.getOpDesc()))
            && (this.getOpPic() == null ? other.getOpPic() == null : this.getOpPic().equals(other.getOpPic()))
            && (this.getOpVideo() == null ? other.getOpVideo() == null : this.getOpVideo().equals(other.getOpVideo()))
            && (this.getOpVisible() == null ? other.getOpVisible() == null : this.getOpVisible().equals(other.getOpVisible()))
            && (this.getOpOrder() == null ? other.getOpOrder() == null : this.getOpOrder().equals(other.getOpOrder()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOpId() == null) ? 0 : getOpId().hashCode());
        result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode());
        result = prime * result + ((getFlowId() == null) ? 0 : getFlowId().hashCode());
        result = prime * result + ((getDepartId() == null) ? 0 : getDepartId().hashCode());
        result = prime * result + ((getOpTitile() == null) ? 0 : getOpTitile().hashCode());
        result = prime * result + ((getOpDesc() == null) ? 0 : getOpDesc().hashCode());
        result = prime * result + ((getOpPic() == null) ? 0 : getOpPic().hashCode());
        result = prime * result + ((getOpVideo() == null) ? 0 : getOpVideo().hashCode());
        result = prime * result + ((getOpVisible() == null) ? 0 : getOpVisible().hashCode());
        result = prime * result + ((getOpOrder() == null) ? 0 : getOpOrder().hashCode());
        return result;
    }
}